﻿@model XtremBiking.Web.Models.Rutinas.CreateRoutine

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CreateRoutine</legend>

        <div class="table-responsive">
            <table class="table table-condensed">
                <tr>
                    <td> @Html.LabelFor(model => model.RoutineType) @Html.EditorFor(model => model.RoutineType)</td>
                    <td> @Html.LabelFor(model => model.NivelUsuario)  @Html.EditorFor(model => model.NivelUsuario)</td>
                    <td> @Html.LabelFor(model => model.RoutineDifficulty) @Html.EditorFor(model => model.RoutineDifficulty)</td>
                </tr>
                <tr>
                    <td> @Html.ValidationMessageFor(model => model.RoutineType)</td>
                    <td> @Html.ValidationMessageFor(model => model.NivelUsuario)</td>
                    <td> @Html.ValidationMessageFor(model => model.RoutineDifficulty)</td>
                </tr>
                <tr>
                    <td colspan="3"> @Html.LabelFor(model => model.Summary)  @Html.EditorFor(model => model.RoutineTypeIntroduccion, new { @class = "input-block-level", @rows = 4})</td>
                </tr>
                <tr>
                    <td colspan="3"> @Html.ValidationMessageFor(model => model.RoutineTypeIntroduccion)</td>
                </tr>
                 <tr>
                    <td colspan="3">
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Summary)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Summary, new { @class = "form-control", @rows = 4 })
                            @Html.ValidationMessageFor(model => model.Summary)
                        </div>    
                    </td>
                </tr>
            </table>
        </div>


       @* <div class="editor-label">
            @Html.LabelFor(model => model.RoutineType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoutineType)
            @Html.ValidationMessageFor(model => model.RoutineType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NivelUsuario)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NivelUsuario)
            @Html.ValidationMessageFor(model => model.NivelUsuario)
        </div>

         <div class="editor-label">
            @Html.LabelFor(model => model.RoutineDifficulty)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoutineDifficulty)
            @Html.ValidationMessageFor(model => model.RoutineDifficulty)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.RoutineTypeIntroduccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoutineTypeIntroduccion)
            @Html.ValidationMessageFor(model => model.RoutineTypeIntroduccion)
        </div>*@

        
        
        <div class="editor-label">
            @Html.LabelFor(model => model.TotalDuration)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalDuration)
            @Html.ValidationMessageFor(model => model.TotalDuration) &nbsp;&nbsp; <a href="#myModal" role="button" class="btn" data-toggle="modal">Agregar Serie</a>
        </div>
@*        @Html.ActionLink("AgregarSerie", "AddSerie", "Routine");*@


        <!-- Button to trigger modal -->

 
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>      
        <h3 id="ModalSerie">Administración de Series</h3>
    </div>
      @Html.Partial("AddSerie", new XtremBiking.Web.Models.Rutinas.Serie())

  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-primary">Save changes</button>
  </div>
</div>





        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
